package com.gitee.feizns.quickstart.spring.data.jpa.autoconfigure;

import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * spring data jpa自动配置
 * @author feizns
 * @since 2023/05/11
 */
@Configuration
@AutoConfigureBefore(JpaBaseConfiguration.class)
public class SpringDataJpaAutoConfiguration {

    /**
     * 表注释的sql配置
     * @return {@link TableCommentHibernatePropertiesCustomizer}
     */
    @Bean
    public TableCommentHibernatePropertiesCustomizer tableCommentHibernatePropertiesCustomizer() {
        return new TableCommentHibernatePropertiesCustomizer();
    }

}
